package com.lost.octopus.es.processor.constant;

import lombok.AccessLevel;
import lombok.NoArgsConstructor;

/**
 * 静态变量
 * @author zhangbh
 **/
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class Constant {

    /**
     * 分隔符
     */
    public static final String SEPARATOR = ",";

    /**
     * 确认楼栋房屋等快速查询前置业务是否运行
     */
    public static final String QUICK_SEARCH_INIT_KEY_PREFIX = "es:processor:quickSearch:%s";

    /**
     * 全量调度 redis存储前缀
     */
    public static final String FULL_SYNC_REDIS_KEY_PREFIX = "es:processor:full-sync:";

    /**
     * 全量调度 重建索引锁
     */
    public static final String FULL_SYNC_INDEX_LOCK_REDIS_KEY_PREFIX = "es:processor:full:sync:index:lock:";

    /**
     * 下划线分隔符
     */
    public static final String UNDERLINE_SEPARATOR = "_";

    /**
     * 长度为1
     */
    public static final int LENGTH_ONE = 1;
}
